
<%@ page import="com.consorzioimpresa.resuite.domain.Prodotto" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="springSecurityUI" />
        <g:set var="entityName" value="${message(code: 'prodotto.label', default: 'Prodotto')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.dateCreated.label" default="Date Created" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${prodottoInstance?.dateCreated}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.durataA.label" default="Durata A" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${prodottoInstance?.durataA}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.durataDa.label" default="Durata Da" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${prodottoInstance?.durataDa}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.finalita.label" default="Finalita" /></td>
                            
                            <td valign="top" class="value"><g:link controller="finalita" action="show" id="${prodottoInstance?.finalita?.id}">${prodottoInstance?.finalita?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.images.label" default="Images" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${prodottoInstance.images}" var="i">
                                    <li><g:link controller="documento" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.lastUpdated.label" default="Last Updated" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${prodottoInstance?.lastUpdated}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.ltv.label" default="Ltv" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "ltv")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.nome.label" default="Nome" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "nome")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.provviggione.label" default="Provviggione" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "provviggione")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.provviggionePercentuale.label" default="Provviggione Percentuale" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "provviggionePercentuale")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.rapportoRataReddito.label" default="Rapporto Rata Reddito" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "rapportoRataReddito")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.spread.label" default="Spread" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: prodottoInstance, field: "spread")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.tipoProdotto.label" default="Tipo Prodotto" /></td>
                            
                            <td valign="top" class="value"><g:link controller="tipoProdotto" action="show" id="${prodottoInstance?.tipoProdotto?.id}">${prodottoInstance?.tipoProdotto?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="prodotto.tipoTasso.label" default="Tipo Tasso" /></td>
                            
                            <td valign="top" class="value"><g:link controller="tipoTasso" action="show" id="${prodottoInstance?.tipoTasso?.id}">${prodottoInstance?.tipoTasso?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${prodottoInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
